package com.tyk.bookstore.front.logistics.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author tyk
 * @description 运单时间线
 */
@Schema(name = "WaybillTimeline", description = "运单时间线")
@TableName("waybill_timeline")
@Data
public class WaybillTimelineDo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1;

    @Schema(description = "运单ID")
    @TableId(value = "waybill_id")
    private Long waybillId;

    @Schema(description = "下单时间")
    @TableField("ordered_time")
    private LocalDateTime orderedTime;

    @Schema(description = "仓库接单时间")
    @TableField("warehouse_received_time")
    private LocalDateTime warehouseReceivedTime;

    @Schema(description = "仓库发货时间")
    @TableField("delivered_time")
    private LocalDateTime deliveredTime;

    @Schema(description = "快递公司揽件时间")
    @TableField("picked_time")
    private LocalDateTime pickedTime;

    @Schema(description = "运输时间")
    @TableField("transporting_time")
    private LocalDateTime transportingTime;

    @Schema(description = "派件时间")
    @TableField("dispatching_time")
    private LocalDateTime dispatchingTime;

    @Schema(description = "待签收时间")
    @TableField("wait_pack_time")
    private LocalDateTime waitPackTime;

    @Schema(description = "签收时间")
    @TableField("signed_time")
    private LocalDateTime signedTime;
}
